package com.ssy.lingxi.order.model.vo.buyer.request;

import com.ssy.lingxi.order.handler.annotation.DeliverPeriodAnnotation;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * @author wyx
 * @version 2.0.0
 * @date 2021-10-13
 */
public class BuyerOrderDeliveryTimeUpdateVO implements Serializable {
    private static final long serialVersionUID = 206571701549770542L;

    /**
     * 订单Id
     */
    @NotNull(message = "订单Id不能为空")
    @Positive(message = "订单Id要大于0")
    private Long orderId;

    /**
     * 订单送货时间（段）比如：2012-12-12 09:00 或者 2012-12-12 09:00-10:00
     * 日期跟时间用空格分开
     */
    @NotBlank(message = "订单送货时间不能为空")
    @DeliverPeriodAnnotation
    private String deliverPeriod;

    /**
     * 调整原因
     */
    @NotBlank(message = "调整原因不能为空")
    private String reason;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getDeliverPeriod() {
        return deliverPeriod;
    }

    public void setDeliverPeriod(String deliverPeriod) {
        this.deliverPeriod = deliverPeriod;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
